import QtQuick 2.12
import QtQuick.Controls 2.12
import QtQuick.Layouts 1.12
import QtCharts 2.3
import ConfigElementType 1.0
import "qrc:/qmlComponents/ConfigManager"

ColumnLayout{
    GroupBox{
        ColumnLayout{
            Label{
                text: "UPH: " + uphHelper.uph
                font.pixelSize: 30
            }
            Label{
                text: qsTr("CircelTime: ") + uphHelper.lastCircelTime + " s"
                font.pixelSize: 30
            }
            Button{
                text: qsTr("Reset")
                onClicked: {
                    uphHelper.reset()
                }
            }
        }
    }

    GroupBox{
        font.pixelSize: 15
        ColumnLayout{
            ConfigRow{
                configModel: paConfig
                configName: "planCount"

                Component.onCompleted: {
                    autoInit()
                }
            }

            ConfigRow{
                configModel: paConfig
                configName: "finishedCount"

                Component.onCompleted: {
                    autoInit()
                }
            }
        }
    }
}
